package com.atu.atugra.service;
 
import com.atu.atugra.tools.CommonResult;
import com.atu.atugra.vo.ProListVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atu.atugra.entity.Products;

import java.util.List;

/**
 * (Products)表服务接口
 *
 * @author makejava
 * @since 2025-02-07 12:03:45
 */
public interface ProductsService extends IService<Products> {

    CommonResult getPage(Integer page, Integer size);

    CommonResult insert(Products products);

    CommonResult updatePro(Products products);

    CommonResult deletePro(Integer id);

    List<ProListVO> searchProducts(String keyword, Long categoryId, Integer page, Integer pageSize);

    CommonResult getMPage(Integer page, Integer size,String keyword);
}
